package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class Sequence extends Model{

	@Required
	public String nom;
	
	public int annee;
	
	@Required
	@ManyToOne
	public SousThematique theme;

	public Sequence(String nom, int annee, SousThematique theme) {
		super();
		this.nom = nom;
		this.annee = annee;
		this.theme = theme;
	}

	public String toString() {
		return this.nom;
	}
}
